local skynet = require "skynet"
local cluster = require "cluster"
local config = require "configquery"


skynet.start(function()

	--开启集群节点端口
	local svr_id = skynet.getenv("svr_id")
	cluster.open(svr_id)
	--配置
	skynet.uniqueservice("confcenter") 
	local svr_config = config.setting_cfg["globalsvr"]
	--控制台服
	skynet.newservice("debug_console",svr_config.debug_port)

	--管理服
	local manager = skynet.uniqueservice("manager_service")
	skynet.call(manager, "lua", "start")	



	skynet.exit()
end)

